/**
 * 
 */
package org.jim.core.packets;

/**
 * 版本: [1.0]
 * 功能说明: 登陆命令请求包体
 * 作者: WChao 创建时间: 2017年9月12日 下午3:13:22
 */
public class HttpReqBody extends Message {

	private static final long serialVersionUID = -101133167215616165L;
	/**
	 * 操作人Id
	 */
	private String opUserId;
	/**
	 * 用户Id
	 */
	private String userId;

	/**
	 * 群id
	 */
	private String groupId;

	/**
	 * 短链
	 */
	private String code;

	/**
	 * 消息id
	 */
	private String msgId;

	/**
	 * token
	 */
	private String token;

	/**
	 * 会话id
	 */
	private String conversationId;

	/**
	 * 会话置顶 0-取消置顶 1-置顶
	 */
	private int isPinned;

	/**
	 * 类型
	 */
	private int type;

	/**
	 * 操作指令 1-查询用户信息 2-查询客服会话列表
	 */
	private int operation;

	public HttpReqBody(){}



	public HttpReqBody(String userId){
		this.userId = userId;
		this.cmd = Command.COMMAND_GET_HTTP_REQ.getNumber();
	}

	public HttpReqBody(String userId, String password){
		this.userId = userId;
		this.cmd = Command.COMMAND_GET_HTTP_REQ.getNumber();
	}


	public String getOpUserId() {
		return opUserId;
	}

	public void setOpUserId(String opUserId) {
		this.opUserId = opUserId;
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getOperation() {
		return operation;
	}

	public void setOperation(int operation) {
		this.operation = operation;
	}

	public int getIsPinned() {
		return isPinned;
	}

	public void setIsPinned(int isPinned) {
		this.isPinned = isPinned;
	}

	public String getConversationId() {
		return conversationId;
	}

	public void setConversationId(String conversationId) {
		this.conversationId = conversationId;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
}
